import { Method } from './interface';

export const getProjectList = {
  method: 'get' as Method,
  url: '/api/project',
};

export const getGroupList = {
  method: 'get' as Method,
  url: '/api/group',
};

export const addProject = {
  method: 'post' as Method,
  url: '/api/project',
};

export const deleteProject = {
  method: 'delete' as Method,
  url: '/api/project',
};

export const getIterationList = {
  method: 'get' as Method,
  url: '/api/iteration',
};

export const addIteration = {
  method: 'post' as Method,
  url: '/api/iteration',
};

export const deleteIteration = {
  method: 'delete' as Method,
  url: '/api/iteration',
};

export const saveEnvLocation = {
  method: 'post' as Method,
  url: '/api/app/envlocation',
};
